#include "dchat.h"
#include<vector>
#include<string>
using namespace std;

class Client:public DistChat{

public:  
  static bool convertClientToSequencer;
  static int currentNewSeqTryNum;
  static int currentInstanceNum;
  static int currentTryNum;
  static vector <bool> checkServerAlive;
  static vector <bool> checkNextServerAlive;
  static bool isElectionInvoked;
  static bool isSequencerFound;
  

  Client(){}

  Client(char* argv[]);
  Client(vector<string> ipt):DistChat(ipt){}
  static void * callForCheckingAlive(void * data);
  static void * callForListening(void * data);
  static void *  callForUserInput(void * data);
  void send_to_master(string data);
  static void handler( int i );
  static void electionHandler(int i);
  ~Client();
};
